package com.ml.mall.entity.credit;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "sys_credit")
public class SysCredit implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_at",fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @TableField(value = "update_at",fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_delete",fill = FieldFill.INSERT)
    private Integer isDelete;

    /**
     * 更新者
     */
    @TableField(value = "updater_acc")
    private String updaterAcc;

    /**
     * 余额
     */
    @TableField(value = "credit_balance")
    private BigDecimal creditBalance;

    /**
     * 公司ID
     */
    @TableField(value = "company_id")
    private Long companyId;

    private static final long serialVersionUID = 1L;
}